package com.nxu.admin.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author wen
 * Date 2021-11-15
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("tab_user")
public class User {
    /**
     * 所有属性都应该在数据库中有
     */
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String password;

    //以下是数据库中的属性
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
